Skip to content

Fix typo in memory fill. #2396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged

Fix typo in memory fill. #2396

merged 1 commit into from
Apr 14, 2025

Conversation

ncruces
Copy link
Contributor

@ncruces ncruces commented Apr 14, 2025

PR #2395 was merged with a typo.

I also compared this with the conditional move approach (i.e. chunk := min(i, 8192) instead of chunk := ((i - 1) & 8191) + 1). In terms of performance and code size it's a wash.

But if you prefer it for clarity (and consistency with bytes.Repeat), I can happily do the change here.

Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
@mathetake mathetake merged commit 0dea5d7 into tetratelabs:main Apr 14, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants